﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebHoiChoMuaBan.Models
{
    public class BannerAdList
    {
        private IList<BannerAd> bannerads;
        private int totalPages;
        private int currentPage;

        public int CurrentPage
        {
            get { return currentPage; }
            set { currentPage = value; }
        }

        public IList<BannerAd> Bannerads
        {
            get { return bannerads; }
            set { bannerads = value; }
        }

        public void Add(BannerAd bannerad)
        {
            this.bannerads.Add(bannerad);
        }

        public int TotalPages
        {
            get { return totalPages; }
            set { totalPages = value; }
        }

        public BannerAdList(int totalPages)
        {
            this.totalPages = totalPages;
            this.bannerads = new List<BannerAd>();
        }
    }
}